package com.company.creational.factory_pattern.factory_method_pattern.client;

import com.company.creational.factory_pattern.factory_method_pattern.factory.FileLoggerFactory;
import com.company.creational.factory_pattern.factory_method_pattern.factory.LoggerFactory;
import com.company.creational.factory_pattern.factory_method_pattern.product.Logger;

/**
 * @ClassName Client
 * @Author tiezheng.han
 * @Date 2020/8/26 10:38
 **/
public class Client {

    public static void main(String[] args) {
        LoggerFactory loggerFactory;
        Logger logger;
        loggerFactory = new FileLoggerFactory();
        logger = loggerFactory.createLogger();
        logger.writeLog();
    }
}
